 namespace rddl = "http://www.rddl.org/"
 namespace xhtml = "http://www.w3.org/1999/xhtml"
 namespace xlink = "http://www.w3.org/1999/xlink"
 
 start = element library { book-element+ }
 author-element =
   [
     xhtml:div [
       rddl:resource [
         id = "author-transform"
         xlink:arcrole = "http://www.w3.org/1999/xhtml"
         xlink:role = "http://www.w3.org/1999/XSL/Transform"
         xlink:title = "Author XSLT template"
         xlink:href = "library.xslt#author"
         xhtml:div [
           class = "resource"
           xhtml:h4 [ "XSLT Transformation" ]
           xhtml:p [
             "This "
             xhtml:a [ href = "library.xslt#author" "XSLT template" ]
             " displays the description of an author as XHTML."
           ]
         ]
       ]
       rddl:resource [
         id = "CSS"
         xlink:title = "CSS Stylesheet"
         xlink:role =
           "http://www.isi.edu/in-notes/iana/assignments/media-types/text/css"
         xlink:href = "author.css"
         xhtml:div [
           class = "resource"
           xhtml:h4 [ "CSS Stylesheet" ]
           xhtml:p [
             xhtml:a [ href = "author.css" "CSS stylesheet" ]
             " defining some cool styles to display an author."
           ]
         ]
       ]
     ]
   ]
   element author {
     attribute id { text },
     name-element,
     born-element,
     dead-element?
   }
 book-start =
   attribute id { text },
   isbn-element,
   title-element,
   author-element*
 book-end =
   author-element*,
   character-element*,
   attribute available { text }
 book-element = element book { book-start, book-end }
 born-element = element born { text }
 character-element =
   element character {
     attribute id { text },
     name-element,
     born-element,
     qualification-element
   }
 dead-element = element dead { text }
 isbn-element = element isbn { text }
 name-element = element name { text }
 qualification-element = element qualification { text }
 title-element =
   element title {
     attribute xml:lang { text },
     text
   }
